package com.shell.qq;

import java.io.Serializable;
//实体类User，封装用户信息
public class User implements Serializable {
    private String username;
    private String password;
    private String phone;
    private String Email;
    public User() {
    }

    public User(String username, String password, String phone, String email) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        Email = email;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return Email;
    }

    public void setEmail(String email) {
        Email = email;
    }

    @Override
    public String toString() {
        String msg=username+"，恭喜您注册成功！\n您的注册信息如下：\n手机号："+phone+"\n邮箱："+Email+"\n";
        return msg;
    }
}
